﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Framework.Mvc.Util
{
    public class EasyUIEditModel
    {
        /// <summary>
        /// 标签名字
        /// </summary>
        public string ControllerName { get; set; }

        /// <summary>
        /// Grid 的ID
        /// </summary>
        public string GridID { get { return "grid" + ControllerName; } }

        /// <summary>
        /// grid url
        /// </summary>
        public string GridJsonUrl { get { return ControllerName + "/GridJson"; } }

        /// <summary>
        /// 工具栏ID
        /// </summary>
        public string ToolbarID { get { return "toolbar" + ControllerName; } }

        /// <summary>
        /// 添加窗口的ID
        /// </summary>
        public string WindowEditID { get { return "WEdit" + ControllerName; } }

        /// <summary>
        /// 弹窗高度
        /// </summary>
        public int WindowHeight { get; set; }

        /// <summary>
        /// 弹窗宽度
        /// </summary>
        public int WindowWidth { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FormEditID
        {
            get
            {
                return "formEdit" + ControllerName;
            }
        }
    }
}
